'use strict';

const Service = require('egg').Service;

class InfoService extends Service {
    async index(id) {
        return await this.app.mysql.query('select * from zk3 where id=?',[id]);
    }
    //修改
    async update(sign,birth,sex,address,id){
        await this.app.mysql.query('update zk3 set sign=?,birth=?,sex=?,address=? where id=?',[sign,birth,sex,address,id])
    }
}

module.exports = InfoService;
